/**
 * Created by IntelliJ IDEA.
 * User: NadiaPC
 * Date: 23.02.11
 * Time: 21:20
 * To change this template use File | Settings | File Templates.
 */
package controller
{
    import model.LogProxy;
    import model.vo.LogRecord;

    import mx.logging.Log;

    import org.puremvc.as3.interfaces.INotification;
import org.puremvc.as3.patterns.command.SimpleCommand;

public class RecordUpdateCommand extends SimpleCommand
{

    override public function execute(notification:INotification):void
    {
        super.execute(notification);
        var record:LogRecord = notification.getBody() as LogRecord;
        var logProxy:LogProxy = facade.retrieveProxy(LogProxy.NAME) as LogProxy;
        logProxy.updateRecord(record);
    }
}
}
